Skip to content

Conversation

@mayankchetan
Copy link
Contributor

Feature or improvement description

Fixing the "© Copyright , National Renewable Energy Laboratory." tags at the bottom of read the docs pages to update programmatically.

Added a link to https://openfast.readthedocs.io/ when user passes -h to the openfast executable

Related issue, if one exists

None

Impacted areas of the software

  • Docs
  • NWTC library

Additional supporting information

Test results, if applicable

Docs build successfully on local machine.

 **************************************************************************************************
 OpenFAST

 Copyright (C) 2025 National Renewable Energy Laboratory
 Copyright (C) 2025 Envision Energy USA LTD

 This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
 See the "LICENSE" file distributed with this software for details.
 **************************************************************************************************

 OpenFAST-v4.1.2
 Compile Info:
  - Compiler: GCC version 14.3.0
  - Architecture: 64 bit
  - Precision: single
  - OpenMP: No
  - Date: Aug  7 2025
  - Time: 14:27:18
 Execution Info:
  - Date: 09/29/2025
  - Time: 15:44:47-0600

  Syntax is:

     OpenFAST [-h] <InputFile>

  where:

     -h generates this help message.
     <InputFile> is the name of the required primary input file.

  Note: values enclosed in square brackets [] are optional. Do not enter the brackets.

  OpenFAST terminated normally.
@mayankchetan mayankchetan requested review from andrew-platt and Copilot and removed request for andrew-platt September 29, 2025 21:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the OpenFAST documentation and help system by making the copyright year dynamic and adding a reference link to the documentation. The changes ensure the copyright year in ReadTheDocs automatically updates each year and provides users with easy access to documentation when using the help command.

  • Dynamic copyright year calculation using current date
  • Added documentation link in help output for better user guidance
  • Converted static strings to f-strings for consistency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/conf.py Updates copyright year to be dynamic and converts strings to f-strings
modules/nwtc-library/src/NWTC_IO.f90 Adds ReadTheDocs link to help command output

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +131 to +133
project = f'OpenFAST'
copyright = f'{datetime.date.today().year}, National Renewable Energy Laboratory'
author = f'OpenFAST Team'
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The f-string conversion for project and author variables is unnecessary since they contain only static strings without any interpolation. Consider keeping them as regular strings for clarity: project = 'OpenFAST' and author = 'OpenFAST Team'.

Suggested change
project = f'OpenFAST'
copyright = f'{datetime.date.today().year}, National Renewable Energy Laboratory'
author = f'OpenFAST Team'
project = 'OpenFAST'
copyright = f'{datetime.date.today().year}, National Renewable Energy Laboratory'
author = 'OpenFAST Team'

Copilot uses AI. Check for mistakes.
Comment on lines +140 to +142
version = f'4.1'
# The full version, including alpha/beta/rc tags.
release = u'v4.1.2'
release = f'v4.1.2'
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converting version and release to f-strings is unnecessary since they contain only static strings. Consider keeping them as regular strings: version = '4.1' and release = 'v4.1.2'.

Copilot uses AI. Check for mistakes.
@mayankchetan mayankchetan changed the title Fix readthedocs copyright year, add link to rtd when using Fix readthedocs copyright year, add link to docs when calling openfast help Sep 29, 2025
Copy link
Collaborator

@andrew-platt andrew-platt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Co-pilot doesn't like the f strings, but I'm fine with them.

@andrew-platt andrew-platt merged commit f9c18e7 into OpenFAST:dev Oct 20, 2025
24 checks passed
@mayankchetan mayankchetan deleted the docFix branch October 20, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants